#ifndef WF_MODIFYSTRETCH_H
#define WF_MODIFYSTRETCH_H

#include "pf_previewactioninterface.h"
#include "pf_modification.h"
#include "gui_export.h"

/**
 * This action class can handle user events to move entities.
 *
 */
class GUI_EXPORT WF_ModifyStretch : public PF_PreviewActionInterface {
	Q_OBJECT
public:
    /**
     * Action States.
     */
    enum Status {
		SetFirstCorner,       /**< Setting first corner of selection. */
		SetSecondCorner,      /**< Setting second corner of selection. */
        SetReferencePoint,    /**< Setting the reference point. */
        SetTargetPoint        /**< Setting the target point. */
    };

public:
    WF_ModifyStretch(PF_Container& container,
                        PF_GraphicView& graphicView);
    ~WF_ModifyStretch() {}
	
	static QAction* createGUIAction(LX_Define::ActionType /*type*/, QObject* /*parent*/);

    virtual void init(int status=0);
    virtual void trigger();
	
	virtual void coordinateEvent(PF_CoordinateEvent* e);
    virtual void mouseMoveEvent(PF_MouseEvent* e);
    virtual void mouseReleaseEvent(PF_MouseEvent* e);
	
    virtual void updateMouseButtonHints();
    virtual void updateMouseCursor();
    virtual void updateToolBar();

private:
	PF_Vector firstCorner;
	PF_Vector secondCorner;
    PF_Vector referencePoint;
    PF_Vector targetPoint;
};

#endif
